package com.allwees.support.payment.model;

import com.allwees.bs.core.model.order.entity.OrderItemModel;
import com.allwees.bs.core.model.order.entity.OrderModel;
import com.allwees.core.common.constant.EPlatform;
import com.allwees.support.payment.payby.configuration.PaybyProperties;
import com.allwees.support.payment.paypal.configuration.PaypalProperties;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class PaymentInfo {

    private EPlatform platform;

    private OrderModel order;

    private CreditCardInfo creditCardInfo;

    private List<? extends OrderItemModel> orderItems;

    private PaypalProperties paypal;

    private PaybyProperties paybyProperties;

    private String deviceId;

    public String getOrderNo() {
        return order.getNo();
    }

    public String getOrderUuid() {
        return order.getUuid();
    }
}
